Viewport.widgetCoordsToLocation

Gets the latitude and longitude corresponding to a position on @widget.

class Viewport
void
widgetCoordsToLocation
(,
double x
,
double y
,
out double latitude
,
out double longitude
)

Parameters

widget Widget

a #GtkWidget that uses @self as viewport

x double

the x coordinate

y double

the y coordinate

latitude double

return location for the latitude

longitude double

return location for the longitude

Meta